/**
 * MCRemoveDownloadFileHost.java
 */
package commands.model;
import dataTypes.File;
import dataTypes.Host;

/**
 * Request to remove a host from the list of hosts hosting a download file.
 * @author Michal Kolodziejski
 */
public class MCRemoveDownloadFileHost extends ModelCommand {
	/** A file of which a host hosting it is requested to be removed. */
	private File file;
	/** A host hosting the file. */
	private Host host;

	
	/**
	 * Constructor
	 * @param file a file of which a host hosting it is requested to be removed
	 * @param host a host hosting the file
	 */
	public MCRemoveDownloadFileHost(File file, Host host){
		super(ModelCommandType.REMOVE_DOWNLOAD_FILE_HOST);
		this.file = file;
		this.host = host;
	}

	/**
	 * @return the file of which a host hosting it is requested to be removed
	 */
	public File getFile() {
		return file;
	}

	/**
	 * @return the host hosting the file
	 */
	public Host getHost() {
		return host;
	}
}
